package kr.hkit.powerjava.homework3;

public class ShapeTest {
	public static void main(String[] args) {
		Shape[] sh=new Shape[6];
		sh[0]=new Ellipse();
		sh[1]=new Rectangle();
		sh[2]=new Triangle();
		sh[3]=new Shpere();
		sh[4]=new Cube();
		sh[5]=new Cylinder();
		
		
		for (int i = 0; i < sh.length; i++) {
			Shape shape = sh[i];
			sh[i].getArea();
			sh[i].getVolume();
		}
	}
}

